<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="p" uri="/WEB-INF/tld/page.tld" %>
<table class="table_list">
    <tr class="">
      <th class="">序号</th>
      <th>交易号</th>
      <th>交易类型</th>
      <th class="">交易日期</th>
      <th class="">交易金额（元）</th>
      <th class="">客户姓名</th>
      <th class="">客户电话</th>
      <th class="">所属门店</th>
      <th class="">操作</th>
    </tr>
    <c:forEach items="${orders }" var="order" varStatus="status">
    <tr class="">
       <td class="">${status.index+1 }</td>
       <td class="">${order.order_no }</td>
       <td class="">${order.type_display }</td>
       <td class="">${order.order_date_display }</td>
       <td class="">${order.pay_amount }</td>
       <td class="">${order.name }</td>
       <td class="">${order.telphone }</td>
       <td class="">${order.store_name }</td>
       <td class=""><a href="javascript:;" onclick='detail("${order.id}", "${order.customer_id }", "${order.type }")'>打印小票</a></td>
     </tr>
    </c:forEach>
</table>
<div id="temp-page-div" style="display:none;">
<p:page map="${page }"></p:page>
</div>

<script type="text/javascript">
	$(function() {
		$("#page-div").html($("#temp-page-div").html());
	})
</script>